package com.tangyuan.dto;


import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class HeadlineArticlePublishDto {

    @NotNull(message = "分类id不能为空")
    private Long categoryId;
    @NotNull
    @Size(min = 5, max = 30, message = "文章标题在5-30字")
    private String title;
    private String content;
    private MultipartFile file;
    private MultipartFile file2;
    private MultipartFile file3;
    private String articleUrl0;
    private String articleUrl1;
    private String articleUrl2;

}
